package leetcode.D400.T370;

import util.GraphUtil;

/**
 * @File Info: leetcode -- <T370>
 * @Author: 18362
 * @Create: 2022-02-17 12:50:16 星期四
 */
public class M370 {
    public static void main(String[] args) {
        int[][] updates = GraphUtil.parseGraph("[[1,3,2],[2,4,3],[0,2,-2]]");
        int[] results = new Solution().getModifiedArray(5, updates);
        for (int i = 0; i < results.length; i++) {
            System.out.print(results[i] + " ");
        }
        System.out.println();
    }
}
